package com.bw.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.user.dao.UsersAndRolesDao;
import com.bw.user.entity.UsersAndRolesEntity;
import com.bw.user.service.UsersAndRolesService;


@Service("usersAndRolesService")
public class UsersAndRolesServiceImpl extends ServiceImpl<UsersAndRolesDao, UsersAndRolesEntity> implements UsersAndRolesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UsersAndRolesEntity> page = this.page(
                new Query<UsersAndRolesEntity>().getPage(params),
                new QueryWrapper<UsersAndRolesEntity>()
        );

        return new PageUtils(page);
    }

}